namespace CodeIsBug.Repository.Repository;

/// <summary>
/// 请求参数日志表操作
/// </summary>
public class SysLogVisRepository:BaseFreeSqlRepository<SysLogVis>
{
    private readonly IFreeSql _fsql;

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="fsql"></param>
    public SysLogVisRepository(IFreeSql fsql):base(fsql)
    {
        _fsql = fsql;
    }

    /// <summary>
    /// 保存请求参数日志信息
    /// </summary>
    /// <param name="requestLog"></param>
    /// <returns></returns>
    public async Task<int> AddRequestLogAsync(SysLogVis requestLog)
    {
      return await _fsql.Insert(requestLog).ExecuteAffrowsAsync();
    }
    
}